package com.me.libgdx_test;

public class ClassCharacterRace {
	private ClassDungeonRace race_info;
	ClassCharacterRace(ClassDungeonRace race_info){
		this.race_info = race_info;
	}
	public ClassDungeonRace get_race_info(){
		return race_info;
	}
	public void trash_spell(ClassCharacterPlayer player){
		/*
		new ClassDungeonRace("Dwarf","race_dwarf.png","Convert spell into +10 health","",0),
		new ClassDungeonRace("Gargoyle","race_gargoyle.png","Convert spell into +1 health potion","",0),
		new ClassDungeonRace("Elf","race_elf.png","Convert spell into +10 mana","",0),
		new ClassDungeonRace("Pixie","race_pixie.png","Convert spell into +1 mana potion","",0),
		new ClassDungeonRace("Human","race_human.png","Convert spell into +10% attack","",2),
		new ClassDungeonRace("Gremlin","race_gremlin.png","Convert spell into +10 gold","",4),
		new ClassDungeonRace("Imp","race_imp.png","Convert spell into +5 experience","",6),
		new ClassDungeonRace("Centaur","race_centaur.png","Convert spell into +5% double Hit","",8),
		new ClassDungeonRace("Troll","race_troll.png","Convert spell into +5 attack","",10)
		Convert spell into +2 base attack/4 mana/4 health
		*/
		
		player.add_god_action("glyph_destruction");
		player.get_class_mods().playerSpellMod.destroy_glyph(player);
		float bonus = player.get_class_mods().playerSpellMod.spell_destruction_bonus;
		if(race_info.Name.equals("Dwarf")){player.set_player_variable("max_health", player.get_player_variable("max_health")+(int)(10 * bonus));}
		if(race_info.Name.equals("Gargoyle")){player.set_player_variable("health_potions", player.get_player_variable("health_potions")+(int)(1* bonus));}
		if(race_info.Name.equals("Elf")){player.set_player_variable("max_mana", player.get_player_variable("max_mana")+(int)(10* bonus));}
		if(race_info.Name.equals("Pixie")){player.set_player_variable("mana_potions", player.get_player_variable("mana_potions")+(int)(1* bonus));}
		if(race_info.Name.equals("Human")){
			player.set_player_variable_float("phys_atk", player.get_player_variable_float("phys_atk") + (float)((.10f * bonus)));
		}
		if(race_info.Name.equals("Gremlin")){player.set_player_variable("gold", player.get_player_variable("gold")+(int)(10* bonus));}
		if(race_info.Name.equals("Imp")){player.set_player_variable("current_exp", player.get_player_variable("current_exp")+(int)(5* bonus));}
		if(race_info.Name.equals("Centaur")){player.set_player_variable_float("double_hit",player.get_player_variable_float("double_hit")+(int)(.05f* bonus));}
		if(race_info.Name.equals("Troll")){player.set_player_variable("attack", (int) (player.get_player_variable("attack")+(int)(5* bonus)));}
		if(race_info.Name.equals("Meta")){
			player.set_player_variable("attack", (int) (player.get_player_variable("attack")+(int)(2* bonus)));
			player.set_player_variable("max_mana", player.get_player_variable("max_mana")+(int)(4* bonus));
			player.set_player_variable("max_health", player.get_player_variable("max_health")+(int)(4* bonus));
		}
	}
}
